function xq() { // pending  resloved  rejected
  return new Promise((resolve, reject) => { // {status: resloved}
    setTimeout(() => {
      console.log('段总相亲了');
      resolve()
    }, 2000)
  })
}

function marry() {
  return new Promise((resolve, reject) => {
    setTimeout(() => {
      console.log('段总结婚了');
      resolve()
    }, 1000)
  })
}

function baby() {
  console.log('小段出生了');
}

xq()
.then(() => {
  return marry()
})
.then(() => {
  baby()
})


